import time
import json
from zhoukao3.Page import Page
from selenium import webdriver
from ddt import ddt,data,unpack
import pytest
@pytest.fixture
def driver():
    driver=webdriver.Edge()
    driver.maximize_window()
    yield driver
    time.sleep(2)
    driver.quit()
@ddt
def test_01_A3mall(driver):
    po=Page(driver)
    po.luoji_A3mallshangpin()
    with open(r"C:\Users\lenovo\Desktop\专二\project\PythonProject\zhoukao3\A3mall.json", encoding="utf-8") as f:
       return print(json.load(f))
if __name__ == '__main__':
    pytest.main()